@(exercicios: Set[Exercicio], tipoAlerta:String, mensagem:String)

@main("Listar Exerc&iacute;cio") {
	
	<div class="alert @tipoAlerta">
		<button type="button" class="close" data-dismiss="alert">&times;</button>
		@mensagem
	</div>
	
	<h3>Lista de Exerc&iacute;cios</h3>
	
	<div class="dado">
		<div class="container-fluid">
			
  	@for(exercicio <- exercicios.toList.sortBy(_.nome)){
  			<div class="row-fluid">
    			<div class="span4 text-right">@exercicio.nome</div>
		    	<div class="span2 text-center">
		    		<a href="@routes.ExercicioControle.editarView(exercicio.id)" class="btn btn-warning" >
		    			<span class="icon-edit"></span> 
		    			Editar
		    		</a>
		    	</div>
		    	<div class="span2 text-center">
    	@helper.form(action = routes.ExercicioControle.remover()){
				 	<input type="hidden" name="id" value="@exercicio.id" />
					<button type="submit" class="btn btn-danger"/>
						<span class="icon-remove"></span> 
						Remover
					</button>
		}
				</div>
			</div>

  	}
		</div>

	</div>
	
	<script>
		exibirAlerta('@tipoAlerta');
	</script>

}
